package com.woniuxy.rbac.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * 角色权限中间表Mapper接口
 */
public interface RolePermMapper {
    @Insert("insert into rbac_role_perm values(#{roleId},#{permId})")
    void insert(@Param("roleId") int roleId, @Param("permId") int permId);

    @Delete("delete from rbac_role_perm where role_id=#{roleId}")
    void delByRoleId(int roleId);
}
